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

Traceback when adding breakpoint at the first line of module (with IPython notebook) #995

Closed
fabioz opened this issue Jul 21, 2022 · 0 comments
Assignees

Comments

@fabioz
Copy link
Collaborator

fabioz commented Jul 21, 2022

When trying to add a breakpoint at the first line, the traceback below is appearing (things still work as it falls back to tracing, but this shouldn't appear to the user at all):

Traceback (most recent call last):
  File "c:\bin\Miniconda\envs\jlab310\lib\site-packages\debugpy\_vendored\pydevd\_pydevd_frame_eval\pydevd_modify_bytecode.py", line 328, in insert_pydevd_breaks
    for new_instruction in get_instructions_to_add(
  File "c:\bin\Miniconda\envs\jlab310\lib\site-packages\debugpy\_vendored\pydevd\_pydevd_frame_eval\pydevd_modify_bytecode.py", line 102, in get_instructions_to_add
    Instr("LOAD_CONST", _pydev_stop_at_break, lineno=stop_at_line - 1),
  File "c:\bin\Miniconda\envs\jlab310\lib\site-packages\debugpy\_vendored\pydevd\_pydevd_frame_eval\vendored\bytecode\instr.py", line 171, in __init__
    self._set(name, arg, lineno)
  File "c:\bin\Miniconda\envs\jlab310\lib\site-packages\debugpy\_vendored\pydevd\_pydevd_frame_eval\vendored\bytecode\instr.py", line 239, in _set
    _check_lineno(lineno)
  File "c:\bin\Miniconda\envs\jlab310\lib\site-packages\debugpy\_vendored\pydevd\_pydevd_frame_eval\vendored\bytecode\instr.py", line 74, in _check_lineno
    raise ValueError("invalid lineno")
ValueError: invalid lineno
@fabioz fabioz changed the title Traceback when adding breakpoint at the first line of module Traceback when adding breakpoint at the first line of module (with IPython notebook) Jul 21, 2022
fabioz added a commit to fabioz/debugpy that referenced this issue Jul 21, 2022
fabioz added a commit to fabioz/debugpy that referenced this issue Jul 21, 2022
@fabioz fabioz closed this as completed in a294092 Jul 30, 2022
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

1 participant