Navigation

    CCBlueX Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    [Tutorial]How to debug your scripts in IntelliJ IDEA

    Scripts
    4
    5
    199
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • As丶One
      As丶One last edited by As丶One

      1、You need to load scripts using the load function instead of the eval function.

      E.G.

      fun initScript() {
          (scriptEngine as Invocable).invokeFunction("load", scriptFile.path)
          callEvent("load")
      
          ClientUtils.getLogger().info("[ScriptAPI] Successfully loaded script '${scriptFile.name}'.")
      }
      

      2、Launch LiquidBounce using debugging in IntelliJ IDEA

      3、Set breakpoints and debug freely

      E.G.
      798ac0da-8c29-481b-8928-3113ebeab905-image.png
      17dde6e7-b84b-40d5-b33f-301989953c8d-image.png

      Konoha Scarlet 1 Reply Last reply Reply Quote 2
      • Konoha Scarlet
        Konoha Scarlet @As丶One last edited by

        @as丶one I suggest you can write a new post(tutorial) to solve our GRADLE BUILD problems( to Chinese users)

        As丶One F 2 Replies Last reply Reply Quote 1
        • As丶One
          As丶One @Konoha Scarlet last edited by

          @konoha-scarlet
          There are too many factors that will lead to gradle build failure, such as network, Java environment, API, repositories, etc. it is difficult to solve these problems by issuing tutorials. To be honest, I am not good at solving these problems myself.

          For Chinese users, the failure of gradle build is often caused by network problems. I suggest trying to use proxy. Other problems can only depend on the situation. I suggest posting on the forum for help.

          1 Reply Last reply Reply Quote 0
          • F
            freerobuxgen2022 @Konoha Scarlet last edited by

            ddg.gg
            stackoverflow.com

            1 Reply Last reply Reply Quote 0
            • C
              commandblock2 last edited by

              Intellij idea Ultimate only

              1 Reply Last reply Reply Quote 0
              • First post
                Last post