liuguangxuan
V2EX  ›  问与答

不懂就要问,请教 CLion 下如何切换调试的进程?

  •  
  •   liuguangxuan · Oct 6, 2020 · 1284 views
    This topic created in 2043 days ago, the information mentioned may be changed or developed.

    背景:

    • set detach-on-fork off:允许同时调试多个进程
    • info inferiors :查看所有进程
    • inferior <num>:切换到对应的进程

    过程:

    我用inferior 2,想切换到第 2 个进程,但是始终切换不过去。请问是哪里的操作不对吗?

    其他:

    用 gdb 命令行,或者 Eclipse 里面都尝试成功了,但是在 Clion 里面没有成功。Clion 版本:2020.2

    1 replies    2020-10-06 22:15:53 +08:00
    liuguangxuan
        1
    liuguangxuan  
    OP
       Oct 6, 2020
    忘记贴图了,

    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   995 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 19:48 · PVG 03:48 · LAX 12:48 · JFK 15:48
    ♥ Do have faith in what you're doing.