Proxmark3 community

Research, development and trades concerning the powerful Proxmark3 device.

Remember; sharing is caring. Bring something back to the community.


"Learn the tools of the trade the hard way." +Fravia

You are not logged in.

Announcement

Time changes and with it the technology
Proxmark3 @ discord

Users of this forum, please be aware that information stored on this site is not private.

#1 2022-02-20 14:17:15

sampurna
Contributor
Registered: 2022-02-19
Posts: 16

How can i debug the client code.

Hi

I am able to build and flash the software. But not able to debug, i googled but didn't find any information.
Can any boy guide me setting up the environment.   I am using ubuntu 20.04 . ProxmarkRdv4.  VSCode.


Regards
Sampurna

Last edited by sampurna (2022-03-24 10:26:17)

Offline

#2 2022-02-21 11:40:06

sampurna
Contributor
Registered: 2022-02-19
Posts: 16

Re: How can i debug the client code.

Resolved the issue by modifying makefile.def  as below

CC = gcc -g
CXX = g++ -g
LD = g++ -g

Updated the launch.json file as follows.

 "version": "0.2.0",
    "configurations": [
        {
            "name": "(gdb) Launch",
            "type": "cppdbg",
            "request": "launch",
            "program": "${workspaceFolder}/client/proxmark3",
            "args": ["/dev/ttyACM0"],
            "stopAtEntry": false,
            "cwd": "${fileDirname}",
            "environment": [],
            "externalConsole": false,
            "MIMode": "gdb",
            "setupCommands": [
                {
                    "description": "Enable pretty-printing for gdb",
                    "text": "-enable-pretty-printing",
                    "ignoreFailures": true
                },
                {
                    "description": "Set Disassembly Flavor to Intel",
                    "text": "-gdb-set disassembly-flavor intel",
                    "ignoreFailures": true
                }
            ]
        }
    ]
}

Last edited by sampurna (2022-03-24 10:25:31)

Offline

#3 2022-03-30 07:32:46

sampurna
Contributor
Registered: 2022-02-19
Posts: 16

Re: How can i debug the client code.

Please close this thread as i have already resolved the issue by following above procedure.

Offline

Board footer

Powered by FluxBB