-
-
Couldn't load subscription status.
- Fork 132
Remove special case for strings in pydevd_sys_monitoring #295
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
Conversation
| return check_version(mod.__version__, "1.0.3") | ||
| else: | ||
| return True | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was a fix for qt loading that somebody submitted to debugpy
| return _cache_file_type[cache_key] | ||
| except: | ||
| if abs_real_path_and_basename[0] == "<string>": | ||
| # TODO: This isn't ideal. We should make it so that "<string>" is |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't need this anymore after eliminating the internal lambda in _pydevd_sys_monitoring.py
| writer.finished_ok = True | ||
|
|
||
|
|
||
| def test_stop_on_entry_verify_strings(case_setup_dap): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This test doesn't work anymore since there's no longer a special case for pydevd strings.
| filename = frame.f_code.co_filename | ||
| name = splitext(basename(filename))[0] | ||
| return "%s::%s %s" % (name, frame.f_code.co_name, frame.f_lineno) | ||
| line = hasattr(frame, "f_lineno") and frame.f_lineno or 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just some minor fixes I noticed when debugging.
|
Just applied. Thank you for the PR. |
I pulled the latest from PyDev.Debugger into debugpy and figured out what was causing the weird string problem. It was the
namedtuplefor the_CodeLineInfo. It was generating a lambda that caused problems with theget_file_typeAPI.Changing the
_CodeLineInfoto an actual class gets rid of the lambda.I'm also pushing over some changes that other people made in debugpy.