Python Forum
I need a win! (HELP!) PLZ?
Thread Rating:
  • 3 Vote(s) - 2.33 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I need a win! (HELP!) PLZ?
#15
So like, for some pseudo-code, I would try something like:

import pdb
def tracefunc(frame, event, arg)

if event == "line"; (I changed this to line instead of call, the line event checks to see if a new line of code is going to be ran)

if frame.f_code.co_name == 'game_over': (I would set this to game_over instead of win, since it's the first frame being read into the stack)

newStack = pdb.Pdb() (Create a pdb object to start the Python Debugger)

Then from here you use the controls the pdb library gives you to maneuver to where you want to be in the stack. (do_jump, do_continue, etc., It'll take some reading of that pdb library to figure out the controls..... Good luck lol)
Reply


Messages In This Thread
I need a win! (HELP!) PLZ? - by Spihdur - Jul-06-2017, 05:14 PM
RE: I need a win! (HELP!) PLZ? - by nilamo - Jul-06-2017, 08:07 PM
RE: I need a win! (HELP!) PLZ? - by Spihdur - Jul-06-2017, 09:28 PM
RE: I need a win! (HELP!) PLZ? - by ichabod801 - Jul-06-2017, 10:02 PM
RE: I need a win! (HELP!) PLZ? - by nilamo - Jul-06-2017, 10:06 PM
RE: I need a win! (HELP!) PLZ? - by ichabod801 - Jul-07-2017, 12:28 AM
RE: I need a win! (HELP!) PLZ? - by Spihdur - Jul-07-2017, 05:02 PM
RE: I need a win! (HELP!) PLZ? - by nilamo - Jul-07-2017, 05:36 PM
RE: I need a win! (HELP!) PLZ? - by Spihdur - Jul-07-2017, 07:15 PM
RE: I need a win! (HELP!) PLZ? - by nilamo - Jul-07-2017, 08:13 PM
RE: I need a win! (HELP!) PLZ? - by thesandmanx - Jul-07-2017, 09:02 PM
RE: I need a win! (HELP!) PLZ? - by Spihdur - Jul-07-2017, 09:08 PM
RE: I need a win! (HELP!) PLZ? - by thesandmanx - Jul-08-2017, 06:11 PM
RE: I need a win! (HELP!) PLZ? - by Spihdur - Jul-08-2017, 06:44 PM
RE: I need a win! (HELP!) PLZ? - by thesandmanx - Jul-08-2017, 06:50 PM
RE: I need a win! (HELP!) PLZ? - by X_Wing - Jul-09-2017, 10:51 PM
RE: I need a win! (HELP!) PLZ? - by tozqo - Jul-10-2017, 04:14 AM
RE: I need a win! (HELP!) PLZ? - by X_Wing - Jul-10-2017, 10:12 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020