leetcode-editor icon indicating copy to clipboard operation
leetcode-editor copied to clipboard

Debugging issues with Webstorm

Open shantanutomar opened this issue 2 years ago • 1 comments

Desc I have set up the extension in Webstorm and am able to log in successfully. When I run the program it runs fine and can see the logs in the Leetcode console. I am not able to debug the problem in Webstorm and every time I start the debugger in Webstorm it exits with the error Process finished with exit code 130 (interrupted by signal 2: SIGINT)

I am using Node V17.4.0

Screenshot 2023-01-14 at 8 37 24 PM

Software versions(Help -> About)(Optional)

  • Product: WebStorm 2022.2.2
  • Runtime version: 17.0.4+7-b469.53 aarch64
  • VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
  • OS: macOS

Question(Optional)

  • URL: leetcode.com
  • Code Type: Javascript
  • code:
    var removeDuplicates = function(nums) {
      console.log(nums);
      let solvedTill = 0
      for(let index = 1; index < nums.length; index++) {
          if(nums[index] !== nums[solvedTill]) {
              solvedTill++;
              nums[solvedTill] = nums[index];
          }
      }
      return solvedTill + 1;
    

};

Thank you!

shantanutomar avatar Jan 14 '23 19:01 shantanutomar

The file name may contain spaces, you can use [${question.frontendQuestionId}]${question.titleSlug} to set file name.

ah-smile avatar Oct 12 '23 03:10 ah-smile