-
Notifications
You must be signed in to change notification settings - Fork 0
Find where your code is crashing
VEX V5 frameworks such as PROS, VEXcode, and vexide don't give specific line numbers or file names after a crash; instead, they provide a hexadecimal address number describing the buggy code's location in the robot's memory. You can then use Symbolizer for VEX V5 to turn this number into something more useful for humans and jump to the exact line where your code crashed.
Symbolizer for VEX V5 is available in the VS Code extension marketplace and can be installed alongside the PROS or VEX Robotics (VEXCode) extensions:
https://marketplace.visualstudio.com/items?itemName=vexide.symbolizer-for-vex-v5
The address marks exactly where your code crashed and can be easily identified as the string of letters and numbers on the second line of the V5 brain's display during a crash. It usually begins with 38 or 78.
VEXcode and vexide | PROS |
---|---|
The address is 03800128. |
The address is 3801bd4. |
In Visual Studio Code, press Ctrl+Shift+P (Windows, Linux) or Command+Shift+P (macOS) to open the command selector. Then, select "Jump to Address" and enter the address displayed on the brain's screen. The editor will then move the cursor to the crash's location.