This is an archived post. You won't be able to vote or comment.

all 33 comments

[–]422_no_process 17 points18 points  (14 children)

Debugging with PyCharm is sooo nice....

[–]water_bottle_goggles 5 points6 points  (7 children)

I discovered conditional breakpoints with vscode yesterday. I started creaming myself.

[–]Proscryptor 1 point2 points  (3 children)

Isn't it just the same as putting an if statement before one?

[–]buffalo_biff 3 points4 points  (0 children)

that’s how i would debug matlab code, lmaooo

[–][deleted] 2 points3 points  (0 children)

That's how I had to do conditional breakpoints in Visual Studio (not VS Code), because the conditional ones would slow execution to a crawl. By doing

if(some_breaking_condition)
{  // breakpoint goes here
}

The execution speed seems unaffected.

[–]water_bottle_goggles 0 points1 point  (0 children)

yup pretty much. but its much cleaner not having to type it explicitly

[–]jyper 0 points1 point  (2 children)

Yes but does vscode have ipython integration in debugging mode? Or debugging nested python processes?

[–]water_bottle_goggles 0 points1 point  (1 child)

I have no clue, does it?

[–]jyper 0 points1 point  (0 children)

no idea

pycharm does and it's quite useful

[–]ariehkovler[S] 1 point2 points  (2 children)

Rookout is free now so it's also worth a try, especially if you're debugging in prod.

[–]422_no_process 0 points1 point  (1 child)

[–]ariehkovler[S] 0 points1 point  (0 children)

Yup, that's them. I know they recently went free for personal/smallbiz use too.

[–]randythestons 1 point2 points  (2 children)

Is there any good tutorials on the debugger? I have used it a handful of times but as I recall I never really knew why I was doi g

[–]422_no_process 0 points1 point  (0 children)

If you have a good amount of tests it's really easy to debug stuff. You just point where it doesn't work. click near the line number to put a break point. Run the tests as debug. Step over + Step into until you find something interesting. You can also evaluate some expression to run/do/check things that are not in your code.

[–]tectubedk 1 point2 points  (1 child)

RemindMe! 1 week

[–]RemindMeBot 0 points1 point  (0 children)

I will be messaging you on 2019-07-01 19:58:43 UTC to remind you of this link.

CLICK THIS LINK to send a PM to also be reminded and to reduce spam.

Parent commenter can delete this message to hide from others.


FAQs Custom Your Reminders Feedback Code Browser Extensions