How to debug the AppEngine local server from IDEA+Gradle?

后端 未结 2 1544
生来不讨喜
生来不讨喜 2021-02-15 18:52

I\'m following the Udacity App Engine course but as the tinker, I\'m following using Gradle and IDEA (Open Source edition).

I have setup the project successfully using t

2条回答
  •  悲哀的现实
    2021-02-15 18:54

    Configuration

    Put jvmFlags on build.gradle

      appengine {
            run {
                jvmFlags = ['-Xdebug', '-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000']
            }
        }
    

    Debug

    • On Gradle execute appengineRun and wait to server start
      • Select Run \ Attach to process... to attach to the server and debug

提交回复
热议问题