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

Debugger does not work if add a breakpoint #13

Closed
svor opened this issue Mar 29, 2019 · 3 comments
Closed

Debugger does not work if add a breakpoint #13

svor opened this issue Mar 29, 2019 · 3 comments

Comments

@svor
Copy link

svor commented Mar 29, 2019

I tried to use netcoredbg with dotnet 2.2.104.
If I don't set breakpoints everything works fine, but if I add one or more breakpoint I'll get an error:

{ 
	command: 'threads',
  	message: 'Failed command \'threads\' : 0x80004005',
  	request_seq: 4,
  	seq: 6,
  	success: false,
  	type: 'response' 
}

Environment

  • os: Fedora 28 Twenty Eight (x86-64)
  • dotnetcore-sdk: 2.2.104
  • netcoredbg: latest releas

Logs

netcoredbg's log file is here: https://raw.githubusercontent.com/svor/files/master/netcodedbg-launch.log

@ayuckhulk
Copy link
Contributor

Hello @svor, thank you for reporting this issue.

It looks like your IDE did not send the configurationDone command. This command actually launches the process. Since there is no process the threads command fails.

netcoredbg's error messages surely need an improvement 😄

@svor
Copy link
Author

svor commented Apr 2, 2019

@ayuckhulk Thank you! I found the problem on my side and your information helped me)
Actually the problem was that I expected debug capabilities in initialize response, but it comes after capabilities event and the value of capabilities was overwritten.

@svor svor closed this as completed Apr 2, 2019
@mickaelistria
Copy link
Contributor

Good catch @svor . I think the current approach of not returning capabilities in initialize is an anti-pattern and doesn't fit very well in specification recommendation. I've open #14 to get it improved in netcoredbg.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants