Skip to content

Debug Pode #783

Answered by Badgerati
stiezinger asked this question in Q&A
Jul 8, 2021 · 2 comments · 3 replies
Discussion options

You must be logged in to vote

Hey @stiezinger,

Usually when I'm debugging, I just pipe stuff into Out-Default or use New-PodeLoggingMethod -Terminal | Enable-PodeErrorLogging to get values onto the terminal 😂

Pode uses a lot of runspaces behind the scenes, which is why the breakpoints won't get triggered. It's something I've been meaning to look into properly for quite sometime, being able to use Debug-Runspace and document how to do it. It might be possible to somehow make VSC use it's breakpoints, but I'll need to properly investigate how to (and if anyone here has managed it, feel free to say how!).

The last time I tried looking into this, it went something like this:

  • Run your Pode server (make sure to use -Threads 1

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@stiezinger
Comment options

@Viajaz
Comment options

@Badgerati
Comment options

Answer selected by stiezinger
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants