Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Draft: Working towards pdb debugging support.#499

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
andrewleech wants to merge14 commits intomicropython:master
base:master
Choose a base branch
Loading
fromandrewleech:pdb

Conversation

@andrewleech
Copy link
Contributor

@andrewleechandrewleech commentedJun 16, 2022
edited
Loading

Details TBD

Requires:micropython/micropython#8767

projectgus and garciahurtado reacted with eyes emoji
@andrewleech
Copy link
ContributorAuthor

andrewleech commentedJun 16, 2022
edited
Loading

BDB Tested withbdb-example-1.zip /https://gist.github.com/Averroes/a208c5883c601992de08
Output doesn't quite match cpython at this stage, but seems to mostly work.

@andrewleech
Copy link
ContributorAuthor

andrewleech commentedJun 21, 2022
edited
Loading

anl@STEP: ~/micropython/ports/unix $ ./micropython-dev -m pdb ../../tests/net_inet/test_tls_sites.py> /home/anl/micropython/ports/unix/../../tests/net_inet/test_tls_sites.py(1)<module>()-> try:(Pdb) b 48Breakpoint 1 at /home/anl/micropython/ports/unix/../../tests/net_inet/test_tls_sites.py:48(Pdb) c> /home/anl/micropython/ports/unix/../../tests/net_inet/test_tls_sites.py(48)main()-> for site in SITES:(Pdb) s> /home/anl/micropython/ports/unix/../../tests/net_inet/test_tls_sites.py(48)main()-> for site in SITES:(Pdb) unt 50> /home/anl/micropython/ports/unix/../../tests/net_inet/test_tls_sites.py(50)main()-> if isinstance(site, dict):(Pdb) s> /home/anl/micropython/ports/unix/../../tests/net_inet/test_tls_sites.py(54)main()-> try:(Pdb) s> /home/anl/micropython/ports/unix/../../tests/net_inet/test_tls_sites.py(55)main()-> test_one(site, opts)(Pdb) s--Call--> /home/anl/micropython/ports/unix/../../tests/net_inet/test_tls_sites.py(14)test_one()-> def test_one(site, opts):(Pdb) s> /home/anl/micropython/ports/unix/../../tests/net_inet/test_tls_sites.py(15)test_one()-> ai = _socket.getaddrinfo(site, 443)(Pdb) s> /home/anl/micropython/ports/unix/../../tests/net_inet/test_tls_sites.py(16)test_one()-> addr = ai[0][-1](Pdb) s> /home/anl/micropython/ports/unix/../../tests/net_inet/test_tls_sites.py(18)test_one()-> s = _socket.socket()(Pdb) s> /home/anl/micropython/ports/unix/../../tests/net_inet/test_tls_sites.py(20)test_one()-> try:(Pdb) s> /home/anl/micropython/ports/unix/../../tests/net_inet/test_tls_sites.py(21)test_one()-> s.connect(addr)(Pdb) p addr*** NameError("name 'addr' isn't defined",)(Pdb)

@andrewleech
Copy link
ContributorAuthor

  • As expected, printing a local variable fails.
  • breakpoints seem to be stopped on the previous line... breaking on a function namemain didn't work (presumably because it tried to break on previous line number`
  • pretty easy to crash
(Pdb) exitFATAL: uncaught NLR 0x7f68a6961fa0

pi-anland others added14 commitsJune 11, 2025 09:16
Requires micropython to be compiled with MICROPY_PY_SYS_SETTRACE.Also requiresmicropython/micropython#8767
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@andrewleech@pi-anl@HowManyOliversAreThere

[8]ページ先頭

©2009-2025 Movatter.jp