Forums - Windows hexagin-lldb Python script not working

2 posts / 0 new
Last post
Windows hexagin-lldb Python script not working
ovexler
Join Date: 19 Apr 19
Posts: 2
Posted: Fri, 2019-06-28 02:12

I have tried to use Python scripts with the debugger hexagon-lldb on windows.
It seems not working...
I have tried

print(lldb,debugger)

and got the response

>>> No Value

However running int on Linux produced the correct response:

>>> Debugger (instance: "debugger_1", id: 1)

Any clue?

  • Up0
  • Down0
doniervask
Join Date: 4 Jan 23
Posts: 1
Posted: Wed, 2023-01-04 22:41
Python has a debugger , which is available as a module called pdb . It supports setting conditional breakpoints , stepping through the source code one line at a time, stack inspection, and more.
 
import pdb
msg = "this is a test"
pdb.set_trace()
print(msg)
 
Insert pdb.set_trace() anywhere and it will function as a breakpoint . When you execute the script by python test.py, you will in the python debug mode.
 
 
  • Up0
  • Down0
or Register

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.