-
Notifications
You must be signed in to change notification settings - Fork 174
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #107 from puremourning/fixups
Improve workflow for launching vimspector from scripts
- Loading branch information
Showing
3 changed files
with
53 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
if argc() < 2 | ||
echom 'Usage:' v:argv[ 0 ] 'processName binary' | ||
cquit! | ||
endif | ||
|
||
setfiletype cpp | ||
call vimspector#LaunchWithSettings( #{ | ||
\ configuration: "C++ - Attach Local Process", | ||
\ processName: argv( 0 ), | ||
\ binary: argv( 1 ), | ||
\ } ) | ||
|
||
1,2argd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"configurations": { | ||
"C++ - Attach Local Process": { | ||
"adapter": "vscode-cpptools", | ||
"variables": { | ||
"PID": { | ||
"shell": [ "GetPIDForProcess", "${processName}" ] | ||
} | ||
}, | ||
"configuration": { | ||
"name": "test", | ||
"request": "attach", | ||
"program": "${binary}", | ||
"processId": "${PID}", | ||
|
||
"type": "cppdbg", | ||
"stopAtEntry": true, | ||
"setupCommands": [ | ||
{ "text": "source ${initFile}", "ignoreFailures": true } | ||
] | ||
} | ||
} | ||
} | ||
} |