Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Once start debugging failed, it cannot start again #56136

Closed
coderdreamworld opened this issue Aug 10, 2018 · 15 comments
Closed

Once start debugging failed, it cannot start again #56136

coderdreamworld opened this issue Aug 10, 2018 · 15 comments
Assignees
Labels
debug Debug viewlet, configurations, breakpoints, adapter issues *duplicate Issue identified as a duplicate of another issue(s)

Comments

@coderdreamworld
Copy link

Issue Type: Bug

Sometimes i write some wrong code, when start debugging it shows "Process exiting with code: 1". After that, i cant start debugging again, it always says "there is already a debug configuration running". Even if i click stop, it does not really stop.

VS Code version: Code 1.25.1 (1dfc5e5, 2018-07-11T15:43:53.668Z)
OS version: Windows_NT x64 6.1.7601

System Info
Item Value
CPUs Intel(R) Core(TM) i5-6500 CPU @ 3.20GHz (4 x 3192)
GPU Status 2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: disabled_software
rasterization: disabled_software
video_decode: enabled
video_encode: enabled
vpx_decode: unavailable_software
webgl: enabled
webgl2: enabled
Memory (System) 7.96GB (3.42GB free)
Process Argv C:\Program Files\Microsoft VS Code\Code.exe
Screen Reader no
VM 0%
Extensions (2)
Extension Author (truncated) Version
vscode-language-pack-zh-hans MS- 1.25.3
Go ms- 0.6.85

(1 theme extensions excluded)

@vscodebot
Copy link

vscodebot bot commented Aug 10, 2018

(Experimental duplicate detection)
Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:

@weinand weinand assigned isidorn and unassigned weinand Aug 10, 2018
@weinand weinand added the debug Debug viewlet, configurations, breakpoints, adapter issues label Aug 10, 2018
@weinand weinand added this to the August 2018 milestone Aug 10, 2018
@weinand
Copy link
Contributor

weinand commented Aug 10, 2018

I've seen this too.

@bwilcutt
Copy link

Also experiencing issue.

@isidorn
Copy link
Contributor

isidorn commented Aug 13, 2018

@coderdreamworld @weinand @bwilcutt can you please give me some precise reproducable steps so I start investigating what is the issue here.

Since this is already present in stable there is no need to fix this for the recovery, so August milestone is good.

@isidorn isidorn added the info-needed Issue requires more information from poster label Aug 13, 2018
@spiskula
Copy link

spiskula commented Aug 13, 2018

Edited:
I seem to be hitting the same error, when trying to debug GO language. Dont have much experience with VS Code so I followed https://rominirani.com/setup-go-development-environment-with-visual-studio-code-7ea5d643a51a.

Just as the OP says, it looks like that if there are no errors in code debugging works. But after firs typo in code the VS/debugger seems to enter a state where even if code is fixed this keeps showing then try t o run:
image

'There is already a debug configuration "Launch" running.'

@isidorn
Copy link
Contributor

isidorn commented Aug 21, 2018

There was a large refactoring in debug how we handle sessions.
I tried reproducing the issue described with the following code sample and I could not

process.exit(1);
console.log('hello there');

@coderdreamworld @weinand @bwilcutt So please try the latest insiders and let me know if you still see the original issue so I can reopen this. Thanks a lot

@isidorn isidorn closed this as completed Aug 21, 2018
@isidorn
Copy link
Contributor

isidorn commented Aug 27, 2018

Also might be a duplicate of #57255

@juristr
Copy link

juristr commented Sep 27, 2018

@isidorn I'm experiencing this issue when attaching to node process running in debug inside a container. If the "attaching" fails (i.e. due to a timeout), and I try to relaunch it, it gives me the error that a debug session is already running. but I cannot see any and I cannot event terminate it somehow.

here's my config

{
      "type": "node",
      "request": "attach",
      "name": "Docker: Attach to Node",
      "port": 9229,
      "address": "localhost",
      "localRoot": "${workspaceFolder}/node/proxy-coordinator",
      "remoteRoot": "/home/node/app",
      "protocol": "inspector"
    },

doing a vscode reload fixes it ofc.. (using the last VSCode Insiders version)

@isidorn
Copy link
Contributor

isidorn commented Sep 27, 2018

@juristr thanks a lot, I was not bobbling up the error properly, this should be fixed in latest out of source and you can verify in tomorrow's vscode insiders - thanks a lot!

isidorn added a commit that referenced this issue Sep 27, 2018
@juristr
Copy link

juristr commented Sep 27, 2018

@isidorn You guys rock 😄, didn't expect such a fast response

@isidorn isidorn added bug Issue identified by VS Code Team member as probable bug and removed info-needed Issue requires more information from poster labels Sep 27, 2018
@isidorn isidorn modified the milestones: August 2018, September 2018 Sep 27, 2018
@isidorn
Copy link
Contributor

isidorn commented Sep 27, 2018

Thanks, if the issue is good we tend to fix fast. Just let me know once you get the update if it is good for you so I can verify it.

@isidorn
Copy link
Contributor

isidorn commented Sep 28, 2018

@juristr just a friednly reminder if you can verify this is good now, thanks a lot

@alexr00
Copy link
Member

alexr00 commented Sep 28, 2018

@isidorn For verification: Is there a good way to force the state that causes this to happen so I can make sure it doesn't happen?

@juristr
Copy link

juristr commented Oct 1, 2018

@isidorn Just wanted to check whether the bug is fixed, but I'm getting a strange error now when running the exact same launch.json configuration I posted above 🤔

image

@isidorn
Copy link
Contributor

isidorn commented Oct 1, 2018

@juristr that sounds like an unrelated issue which has something to do with source maps. Can you please create a new issue in this repository with reproducable steps fyi @roblourens
@alexr00 no need to verify this one, since Sandeep verified the issue which this is a duplicate off #59331
Removing bug label, sorry for not doing that earlier

@isidorn isidorn added *duplicate Issue identified as a duplicate of another issue(s) and removed bug Issue identified by VS Code Team member as probable bug labels Oct 1, 2018
@vscodebot vscodebot bot locked and limited conversation to collaborators Oct 5, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
debug Debug viewlet, configurations, breakpoints, adapter issues *duplicate Issue identified as a duplicate of another issue(s)
Projects
None yet
Development

No branches or pull requests

7 participants