Skip to content
This repository has been archived by the owner on Mar 28, 2023. It is now read-only.

Generate Debug map + breakpoint set for use in debugging #53

Closed
localhuman opened this issue Mar 16, 2018 · 3 comments
Closed

Generate Debug map + breakpoint set for use in debugging #53

localhuman opened this issue Mar 16, 2018 · 3 comments
Labels
HACKIT Hackable Issue for Hackathons

Comments

@localhuman
Copy link
Collaborator

For use in debugging with neo-gui-developer or in a future neo-python debugging implementation, we need to generate a debug map that maps each instruction to a line number of a piece of code in each file.

This, together with a set of breakpoints that correspond to the map and instruction can be used to pause/inspect/step over or in general perform normal debugging tasks.

@localhuman localhuman added the HACKIT Hackable Issue for Hackathons label Mar 16, 2018
@localhuman
Copy link
Collaborator Author

Just a heads up! @Relfos already implemented this in the pre 3.6 version. His code just needs to be ported to the new setup. His implementation can be viewed here:

def export_debug(self, output_path):

@localhuman
Copy link
Collaborator Author

We now have debug maps!

Anyone have a good idea of how to gather a breakpoint set from various editors? I was looking into the PyCharm IDE and how it stores breakpoints but couldn't determine how that is done.

An easy editor-agnositc solution would be to add a breakpoint() method which can be placed anywhere and would be ignored by the VM but place a breakpoint in the debug map.

@localhuman
Copy link
Collaborator Author

This is now implemented.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
HACKIT Hackable Issue for Hackathons
Projects
None yet
Development

No branches or pull requests

2 participants
@localhuman and others