code-debug: Retrieving "argv" from main causing plugin freeze

ArchLinux GNU gdb (GDB) 7.11.1 VS Code Version 1.4.0

The problem is that cannot be seen the string inside of “argv”. Debugger loading and loading, but when i want to continue and see other variable, looks like plugin stopped working.

On Screenshots are more infos.

On this screenshot you see that i put one parameter. This “loading” animation never ends. loading

On this screenshot you see that “app” variable shows as “nullptr” and that’s not true, because “gtk_application_new” allocated the variable. allocated

That’s logs when i stopped debugging (SHIFT+F5)

SVG's SMIL animations (<animate>, <set>, etc.) are deprecated and will be removed. Please use CSS animations or Web animations instead.
Cannot read property 'body' of null: TypeError: Cannot read property 'body' of null
    at file:////usr/share/code/resources/app/out/vs/workbench/workbench.main.js:83:4903
    at Object.g [as _notify] (file:////usr/share/code/resources/app/out/vs/workbench/workbench.main.js:32:7573)
    at Object.W.enter (file:////usr/share/code/resources/app/out/vs/workbench/workbench.main.js:32:11151)
    at i.Class.define._run (file:////usr/share/code/resources/app/out/vs/workbench/workbench.main.js:32:12979)
    at i.Class.define._completed (file:////usr/share/code/resources/app/out/vs/workbench/workbench.main.js:32:12420)
    at i.Class.define.then (file:////usr/share/code/resources/app/out/vs/workbench/workbench.main.js:32:14412)
    at Object.P.enter (file:////usr/share/code/resources/app/out/vs/workbench/workbench.main.js:32:10230)
    at i.Class.define._run (file:////usr/share/code/resources/app/out/vs/workbench/workbench.main.js:32:12979)
    at i.Class.define._setCompleteValue (file:////usr/share/code/resources/app/out/vs/workbench/workbench.main.js:32:12673)
    at Object.m [as _notify] (file:////usr/share/code/resources/app/out/vs/workbench/workbench.main.js:32:8135)
Cannot read property 'scopes' of null: TypeError: Cannot read property 'scopes' of null
    at e.getScopes (file:////usr/share/code/resources/app/out/vs/workbench/workbench.main.js:83:6324)
    at file:////usr/share/code/resources/app/out/vs/workbench/workbench.main.js:98:24102
    at Object.g [as _notify] (file:////usr/share/code/resources/app/out/vs/workbench/workbench.main.js:32:7573)
    at Object.W.enter (file:////usr/share/code/resources/app/out/vs/workbench/workbench.main.js:32:11151)
    at i.Class.define._run (file:////usr/share/code/resources/app/out/vs/workbench/workbench.main.js:32:12979)
    at i.Class.define._completed (file:////usr/share/code/resources/app/out/vs/workbench/workbench.main.js:32:12420)
    at i.Class.define.then (file:////usr/share/code/resources/app/out/vs/workbench/workbench.main.js:32:14412)
    at file:////usr/share/code/resources/app/out/vs/workbench/workbench.main.js:38:13772
    at file:////usr/share/code/resources/app/out/vs/workbench/workbench.main.js:37:1364
    at o (file:////usr/share/code/resources/app/out/vs/workbench/workbench.main.js:37:76)

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 25 (13 by maintainers)

Most upvoted comments

thats why I will only do that when gdb tells me arg: 1

Otherwise it will do the same but stop on the first null and not on the second

Config: "arguments": "firstParameter secondParameter thirdParameter",

Output:

-data-evaluate-expression *(argv+1)
{"token":10,"outOfBandRecord":[],"resultRecords":{"resultClass":"done","results":[["value","0x7fffffffe94b \"firstParameter\""]]}}
GDB -> App: {"token":10,"outOfBandRecord":[],"resultRecords":{"resultClass":"done","results":[["value","0x7fffffffe94b \"firstParameter\""]]}}
-data-evaluate-expression *(argv+2)
{"token":11,"outOfBandRecord":[],"resultRecords":{"resultClass":"done","results":[["value","0x7fffffffe95a \"secondParameter\""]]}}
GDB -> App: {"token":11,"outOfBandRecord":[],"resultRecords":{"resultClass":"done","results":[["value","0x7fffffffe95a \"secondParameter\""]]}}
-data-evaluate-expression *(argv+3)
{"token":12,"outOfBandRecord":[],"resultRecords":{"resultClass":"done","results":[["value","0x7fffffffe96a \"thirdParameter\""]]}}
GDB -> App: {"token":12,"outOfBandRecord":[],"resultRecords":{"resultClass":"done","results":[["value","0x7fffffffe96a \"thirdParameter\""]]}}
-data-evaluate-expression *(argv+4)
{"token":13,"outOfBandRecord":[],"resultRecords":{"resultClass":"done","results":[["value","0x0"]]}}
GDB -> App: {"token":13,"outOfBandRecord":[],"resultRecords":{"resultClass":"done","results":[["value","0x0"]]}}

Ah ok thats helping and should be easy to implement. I will do that tomorrow, cleaning up my other projects right now