Breakpoints not hit.
See original GitHub issueIssue Type: Bug
I have a simple file parser in python and input text file. When I place a breakpoint at any line in the soure, the break point is not being hit.
I set the break point at line pointed to here. Or at any line for that matter…
if m1 != None: #program block begin
lnlst.append(line)
else: #existing list
if m1 is not None or m2 is not None: #program block begin or final block
for item in lnlst:
for fails in flist:
ptrn = "(\\"+fails[1]+")"+"(.*)" <<<<<<<<
match = re.search(ptrn,item)
if match != None:
errFound = True
[forcheck.zip](https://github.com/microsoft/vscode/files/4834297/forcheck.zip)
I expect the debugger to stop and allow me to inspect the variables. I initially created a Microsoft bug for vscode and I was asked to submit this to vscode-python: https://github.com/microsoft/vscode/issues/101075
VS Code version: Code 1.46.1 (cd9ea6488829f560dc949a8b2fb789f3cdc05f5d, 2020-06-17T21:13:20.174Z) OS version: Windows_NT x64 10.0.18363
System Info
Item | Value |
---|---|
CPUs | Intel® Core™ i7-8850H CPU @ 2.60GHz (12 x 2592) |
GPU Status | 2d_canvas: enabled flash_3d: enabled flash_stage3d: enabled flash_stage3d_baseline: enabled gpu_compositing: enabled multiple_raster_threads: enabled_on oop_rasterization: disabled_off protected_video_decode: enabled rasterization: enabled skia_renderer: disabled_off_ok video_decode: enabled viz_display_compositor: enabled_on viz_hit_test_surface_layer: disabled_off_ok webgl: enabled webgl2: enabled |
Load (avg) | undefined |
Memory (System) | 31.72GB (15.84GB free) |
Process Argv | |
Screen Reader | no |
VM | 0% |
Extensions (14)
Extension | Author (truncated) | Version |
---|---|---|
vscode-markdownlint | Dav | 0.36.0 |
xml | Dot | 2.5.0 |
vscode-solution-explorer | fer | 0.3.10 |
vscode-pull-request-github | Git | 0.17.0 |
fortran-ls | han | 0.6.2 |
linter-gfortran | krv | 2.2.1 |
vscode-azureappservice | ms- | 0.17.0 |
vscode-docker | ms- | 1.3.1 |
python | ms- | 2020.6.90262 |
remote-wsl | ms- | 0.44.4 |
azure-account | ms- | 0.8.11 |
cpptools | ms- | 0.28.3 |
powershell | ms- | 2020.6.0 |
sourcery | sou | 0.2.5 |
Output from Console
under the Developer Tools
panel (toggle Developer Tools on under Help
; turn on source maps to make any tracebacks be useful by running Enable source map support for extension debugging
)
XXXX
Issue Analytics
- State:
- Created 3 years ago
- Comments:15
Top Results From Across the Web
break point is not hitting while debugging - Stack Overflow
1- Right mouse click your project · 2- select [Properties] · 3- select [Build] tab · 4- make sure [Define DEBUG constant] and...
Read more >Troubleshoot Breakpoints in the Visual Studio Debugger
If a source file has changed and the source no longer matches the code you're debugging, the debugger won't set breakpoints in the...
Read more >If breakpoints are not hit when debugging | GE Digital
Breakpoints should be used and hit when debugging. If your breakpoints are not hit during a debugging session, follow the information below to...
Read more >BreakPoints Are Not Working in Visual Studio - C# Corner
BreakPoints Are Not Working in Visual Studio · Right-click on your project. · Select [Properties]. · Select the [Build] tab. · Ensure [Define...
Read more >Debugger not hitting breakpoints - Visual Studio Feedback
I resolved the former problems by installing Visual Studio Tools for Unity. However, when I set a breakpoint, they are not being hit....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Can this be opened again? The workaround of not activating the python environment in the shell is not working and it is important for me to be able to debug the specific versions in my virtualenv
@int19h I have found some similar behavior. I am using conda environment. I tried manual activation, or automatic, and beside of this created a new config, none of them worked. The issue is: for me the breakpoints is hitted, but not all. I am placing more breakpoints in a file, so the first one is hitted but the others are not. Behavior is incosistent, so if I disable ex. the first all others are hitted.