For example
-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=xxx
-javaagent:/path/to/skywalking-agent.jar
The order is important.

在 2020/8/29 上午11:47,“Li BingLong(智能平台)”<[email protected]> 写入:

    Put the code "-agentlib" before the code "-javaagent". the agent 
initialization would run after a debugger attaches to it.

    在 2020/8/29 上午11:22,“Sheng Wu”<[email protected]> 写入:

        Hi

        Thanks for the feedback. Your description is correct, suspend=y will 
wait
        for the attachment.
        The current version of this is not for agent core developers, most for
        plugin developers.
        Don't wait for the attachment is more widely used.
        Also, even you set the suspend=y, the agent initialization would run, 
you
        still can't debug anything.

        Sheng Wu 吴晟
        Twitter, wusheng1108


        Li BingLong(智能平台) <[email protected]> 于2020年8月29日周六 
上午10:53写道:

        > The book shows how to debug remotely on page 18.
        > According to
        > https://docs.oracle.com/cd/E19146-01/821-1828/gdabx/index.html
        > If you substitute suspend=y, the JVM starts in suspended mode and 
stays
        > suspended until a debugger attaches to it.
        > As the agent startup at the beginning,suspend=y is the better 
choice.Also,
        > The explanation of suspend on this page is unclear.
        >


Reply via email to