Giter VIP home page Giter VIP logo

Comments (5)

nek4life avatar nek4life commented on June 29, 2024 2

Hi @xpuctto there is progress, but it's slow going.

What I have so far is on this branch https://github.com/nek4life/sfcc-studio/tree/debugger I'm able to start and stop the debugger, but the SDAPI needs to be wired into the xdebugger event handlers.

It's mainly figuring out how to extend the IDE and to do that there's a lot of reading other plugins and diving into the class implementations.

from sfcc-studio.

nek4life avatar nek4life commented on June 29, 2024 1

Thanks @ulitink I had been doing a bit of research and I believe you are right that xdebugger would be the way to go.

Here is a good example of how to use the xdebugger in action.

https://github.com/mulesoft-labs/data-weave-intellij-plugin/tree/master/data-weave-plugin/src/main/java/org/mule/tooling/lang/dw/debug

I don't remember seeing the documentation or do you just mean the documentation in the source code itself?

I think the next steps are to write an API client for the SDAPI. Then I think it's as "easy" as extending and hooking up all the right classes... I started writing one in Kotlin, but then ran into an issue trying to get kotlinx.serialization working within the IDE. It worked fine as a separate library. Not sure what I was doing wrong.

(Never used Kotlin before and wanted to try it out. I wonder if I'd get more contributions if I continue to use Java or if I started using Kotlin for everything)

I'll take a look at those classes you suggest as well! Thanks for the help!

from sfcc-studio.

hhristovcodes avatar hhristovcodes commented on June 29, 2024 1

Hi @nek4life ,

Is there any progress on the debugger, since that's the only reason I haven't started using IntelliJ as my main SFCC IDE?

from sfcc-studio.

ulitink avatar ulitink commented on June 29, 2024

It's not necessary to use scriptDebugger, with xdebugger a solution may be just a slightly more cumbersome. But xdebugger is documented and has a lot of examples.

As a starting point, I would suggest to implement SimpleConfigurationType and ProgramRunner. ProgramRunner#execute should invoke com.intellij.xdebugger.XDebuggerManager#startSession.

from sfcc-studio.

nek4life avatar nek4life commented on June 29, 2024

Initial version will be in the next release once it is approved by JetBrains

from sfcc-studio.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.