File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed
lldb/tools/lldb-dap/src-ts Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,23 @@ export class LLDBDapConfigurationProvider
4848 // Remove the property even if the user explicitly requested it.
4949 if ( debugConfiguration . waitFor === true ) {
5050 delete debugConfiguration . pid ;
51+ if ( ! ( "program" in debugConfiguration ) ) {
52+ return vscode . window
53+ . showErrorMessage (
54+ "Failed to attach to process: 'waitFor' requires that a 'program' be provided . Please update your launch configuration." ,
55+ { modal : true } ,
56+ "Configure" ,
57+ )
58+ . then ( ( userChoice ) => {
59+ switch ( userChoice ) {
60+ case "Configure" :
61+ // returning null from resolveDebugConfiguration() causes VS Code to open the launch configuration
62+ return null ;
63+ default :
64+ return undefined ;
65+ }
66+ } ) ;
67+ }
5168 }
5269 }
5370 return debugConfiguration ;
You can’t perform that action at this time.
0 commit comments