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 hit breakpoints on reattach #3417

Closed
skoh7645 opened this issue Jun 24, 2020 · 2 comments
Closed

Debugger does not hit breakpoints on reattach #3417

skoh7645 opened this issue Jun 24, 2020 · 2 comments
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@skoh7645
Copy link
Contributor

/kind bug

What versions of software are you using?

Operating System: macOS

Output of odo version: master

How did you run odo exactly?

  1. Get the devfile from https://github.com/neeraj-laad/nodejs-stack-registry/blob/master/devfiles/nodejs/devfile.yaml onto my local machine
  2. odo create --downloadSource
  3. odo url create --port 3000
  4. odo push --debug
  5. odo debug port-forward
  6. Set breakpoints, attach debugger and hit breakpoints successfully
  7. Detach and reattach debugger, debugger no longer stops at the breakpoints as expected

Actual behavior

If I reattach the debugger (after the first time), it does not stop at the set breakpoints. I have to rerun odo push --debug
and odo debug port-forward to hit the breakpoints again.

Expected behavior

I can detach and reattach the debugger and still hit the set breakpoints every time

Any logs, error output, etc?

@openshift-ci-robot openshift-ci-robot added the kind/bug Categorizes issue or PR as related to a bug. label Jun 24, 2020
@mik-dass
Copy link
Contributor

The exact steps seem to work for me. I am able to detach and reattach successfully.

@skoh7645
Copy link
Contributor Author

@mik-dass explained to me that I should be setting breakpoints in the loaded scripts section, rather than directly in the local file. It works as expected after all! Perhaps there is some documentation needed for this, though this should be on the VSCode side rather than Odo. Closing this issue as it is not a problem with Odo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

3 participants