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

pdb #23

Open
GoogleCodeExporter opened this issue Aug 9, 2015 · 5 comments
Open

pdb #23

GoogleCodeExporter opened this issue Aug 9, 2015 · 5 comments

Comments

@GoogleCodeExporter
Copy link

Hey Erez27,

Figured I'd at least file an issue about pdb. pdb exits out once 
set_trace() is called.

pybw> import pdb
pybw> pdb.set_trace()
--Return--
> <input>(1)<module>()->None
(Pdb)
Traceback (most recent call last):
  File "<input>", line 1, in <module>
  File "C:\Python26\Lib\bdb.py", line 50, in trace_dispatch
    return self.dispatch_return(frame, arg)
  File "C:\Python26\Lib\bdb.py", line 84, in dispatch_return
    if self.quitting: raise BdbQuit
BdbQuit

Original issue reported on code.google.com by sneil...@gmail.com on 28 Dec 2009 at 4:26

@GoogleCodeExporter
Copy link
Author

Currently, I have no idea how that would work. The pybw_repl seems to run 
commands by 
using the InteractiveConsole's compile command which makes pdb quit like so:
import code
i = code.InteractiveConsole()
>>> i.compile('import pdb; pdb.set_trace()')
<code object <module> at 00B35F50, file "<input>", line 1>

It definitely doesn't drop down into pdb.

I'm honestly not sure how this thing works and am unable to make a patch for 
it..

Original comment by sneil...@gmail.com on 28 Dec 2009 at 7:06

@GoogleCodeExporter
Copy link
Author

actually, nevermind, I've figured it out and it seems unlikely that pdb can 
work through 
an rpc server. It would be awkward, like that first dance once goes to in 
middle school.

I figure that the console must also run in the same memory space (in a thread) 
as 
starcraft. I'm gonna take a look at this & see if I can get it to work : 
http://lfw.org/python/Console.py

Original comment by sneil...@gmail.com on 28 Dec 2009 at 4:14

@GoogleCodeExporter
Copy link
Author

Good luck.

Things have been frantic at work lately, so update were slow, but I expect I'll 
have 
some time to look into it soon.

Original comment by erez27 on 28 Dec 2009 at 11:45

@GoogleCodeExporter
Copy link
Author

thank you!

no problem dude, I've asked around on some different forums and was pointed to 
PyShell using wxWindows.

Would you mind a tie to wxwindows if it means having a debugger?

Original comment by sneil...@gmail.com on 30 Dec 2009 at 7:49

@GoogleCodeExporter
Copy link
Author

As long as the tie is optional, I don't mind at all.

Original comment by erez27 on 30 Dec 2009 at 12:36

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant