microsoft / vscode-mono-debug

A simple VS Code debug adapter for mono
Other
159 stars 173 forks source link

Unexpected token E. Stopping the debug adapter #25

Closed weinand closed 6 years ago

weinand commented 7 years ago

From @thomasgarai on May 29, 2016 0:36

visual studio code debug console output: ===============================> /usr/local/bin/mono --debug --debugger-agent=transport=dt_socket,server=y,address=127.0.0.1:55169 --debug ATF.exe

ps -ef yields the following: ====================> ps -ef | grep mono tg 14773 2250 0 10:02 ? 00:00:00 /usr/local/bin/mono --debug --debugger-agent=transport=dt_socket,server=y,address=127.0.0.1:55169 --debug ATF.exe

netstat -an shows socket still open ===========================> $ netstat -an | grep 55169 tcp 0 0 127.0.0.1:55169 0.0.0.0:* LISTEN tcp 0 0 127.0.0.1:55169 127.0.0.1:44326 CLOSE_WAIT

The launch.json file: { "version": "0.2.0", "configurations": [ { "name": "mono", "type": "mono", "request":"launch", "program": "${workspaceRoot}/bin/Debug/net40/ubuntu.14.04-x64/ATF.exe", "runtimeExecutable": "/usr/local/bin/mono", "runtimeArgs": ["--debug"] }, { "name": ".NET Core Launch (console)", "type": "coreclr", "request": "launch", "preLaunchTask": "build", "program": "${workspaceRoot}/bin/Debug/net40/ubuntu.14.04-x64/ATF.exe", "args": [], "cwd": "${workspaceRoot}", "stopAtEntry": false }, { "name": ".NET Core Launch (web)", "type": "coreclr", "request": "launch", "preLaunchTask": "build", "program": "${workspaceRoot}/bin/Debug/net40/ubuntu.14.04-x64/ATF.exe", "args": [], "cwd": "${workspaceRoot}", "stopAtEntry": false, "launchBrowser": { "enabled": false, "args": "${auto-detect-url}", "windows": { "command": "cmd.exe", "args": "/C start ${auto-detect-url}" }, "osx": { "command": "open" }, "linux": { "command": "xdg-open" } } }, { "name": ".NET Core Attach", "type": "coreclr", "request": "attach", "processName": "ATF" } ] }

Copied from original issue: Microsoft/vscode#7001

weinand commented 7 years ago

From @ShadowIce on September 12, 2016 8:58

I get the same error when I try to debug a C++ program on Windows using cppvsdbg, except that it's "Unexpected token C" and it's shortly after starting the program. I have a breakpoint set but it's not reached during that time. If I disable the breakpoint everything works.

weinand commented 7 years ago

From @jacereda on September 30, 2016 9:55

I deleted all breakpoints and still get the "Unexpected token C" error.