prophet icon indicating copy to clipboard operation
prophet copied to clipboard

Debugger not starts up (with no errors or messages)

Open vrushali-desai opened this issue 4 years ago • 39 comments

Prophet Debugger is not working for me as expected since past few days. When I click on the run I always get a popup asking to select the environment (screenshot attached below). Nothing happens after selecting the environment.

Screenshot 2019-11-29 at 16 24 43

It was working fine before. I have tried also by disabling other extensions, closing VSCode completely but nothing seems to help. The debugger sometimes works properly after I reboot the system. I am on

  • OS: macOS Catalina
  • VSCode version - 1.40.2
  • The extension version - 1.2.4

vrushali-desai avatar Nov 29 '19 15:11 vrushali-desai

Experiencing same problem. @SqrTT any updates? I think currently I am relegated to using Eclipse when needing to debug.

ctwh avatar Dec 05 '19 20:12 ctwh

I'm not able to reproduce. Could you guys provide more detailed info/steps? Is the issue reproducible for older versions? Any logs/errors? Try to reinstall the extension.

SqrTT avatar Dec 06 '19 08:12 SqrTT

Strangely the debugger is working for me now. Although I cannot say for sure what fixed the debugger; but one thing is that now it's started working after I save my projects in workspace. Of course I had tried it before also but had not worked; also I could use the debugger previously without having a workspace and yes, had done the reinstallation of the extension several times before posting the issue. Nevertheless, I am happy that it's working for me now as even I was considering moving to eclipse to be able to debug.

vrushali-desai avatar Dec 06 '19 09:12 vrushali-desai

I still have this issue. Debug console error message:

Error
 Error
    at Request._callback (###\.vscode\extensions\sqrtt.prophet-1.2.4\out\Connection.js:73:35)
    at Request.self.callback (###\.vscode\extensions\sqrtt.prophet-1.2.4\node_modules\request\request.js:185:22)
    at Request.emit (events.js:200:13)
    at Request.<anonymous> (###\.vscode\extensions\sqrtt.prophet-1.2.4\node_modules\request\request.js:1161:10)
    at Request.emit (events.js:200:13)
    at IncomingMessage.<anonymous> (###\.vscode\extensions\sqrtt.prophet-1.2.4\node_modules\request\request.js:1083:12)
    at Object.onceWrapper (events.js:288:20)
    at IncomingMessage.emit (events.js:205:15)
    at endReadableNT (_stream_readable.js:1154:12)
    at processTicksAndRejections (internal/process/task_queues.js:84:9)Disconnecting...
Error

I installed previous VS Code version, previous Prophet version, I created a new workspace and I had no success.

isabelklings avatar Dec 06 '19 10:12 isabelklings

could you please try to uncheck extension.prophet.sandbox.filesystem.enabled = false

image

and remove Sandbox File system workspace, and see if debugger works after that?

SqrTT avatar Dec 18 '19 11:12 SqrTT

could you please try to uncheck extension.prophet.sandbox.filesystem.enabled = false

image

and remove Sandbox File system workspace, and see if debugger works after that?

Unfortunately it's not working :( Do you have another idea maybe? Thank you!

isabelklings avatar Jan 02 '20 12:01 isabelklings

@SqrTT That seemed to work for me.

ctwh avatar Jan 02 '20 19:01 ctwh

I'm also experiencing the issue. setting extension.prophet.sandbox.filesystem.enabled=false did not resolve the problem.

bradbrock avatar Jan 07 '20 21:01 bradbrock

@bradbrock Have you tried to remove Sandbox File system workspace?

image

SqrTT avatar Jan 13 '20 09:01 SqrTT

@SqrTT I haven't, but the issue seems to have worked itself out. My sandbox was restarted from control center and everything has been working as expected since then.

bradbrock avatar Jan 18 '20 22:01 bradbrock

I'm also experiencing the same issue. The debugger stops working, and I get the following: image even though I have the launch.json file. When I hit "create a launch.json file", I get the following error:

Unable to create 'launch.json' file inside the '.vscode' folder (Unable to write file (EntryNotFound (FileSystemError): ccfs://current-sandbox/.vscode)).

The way I'm currently fixing it is by uninstalling prophet, restarting vscode, and then installing it again. The issue seems to happens once every few days but I've not seen a pattern or a way to reproduce it.

sghata avatar Feb 06 '20 18:02 sghata

@sghata Have you tried to disable sandbox filesystem and remove it from workspace, like described above?

SqrTT avatar Feb 07 '20 09:02 SqrTT

Hi, I am also experiencing this today. image

I've already disabled the sandbox filesystem but it's not working for me.

cgornez avatar Feb 11 '20 05:02 cgornez

Hello all.

This ticket has 3 totally different issues:

  1. debugger doesn't start with no error (or messages) in debug console.
  2. Can't create configuration launch.json (Unable to write file (EntryNotFound (FileSystemError): ccfs://current-sandbox/.vscode)).
  3. debugger starts with error in debug console.

So, let's process as different issues.

  1. Unfortunately, I'm not able reproduce an issue, need more details, log, etc.
  2. remove sandbox file system should help.
  3. let's track in #224

SqrTT avatar Mar 10 '20 09:03 SqrTT

I'm also having the issue with the debugger not working - no error message at all. In vscode I notice that the progress animation that appears when you click on the Run arrow or press F5 never stops. Is there a way to see what is going on via logs?

jmatos avatar Apr 21 '20 15:04 jmatos

I'm also having the issue with the debugger not working - no error message at all. In vscode I notice that the progress animation that appears when you click on the Run arrow or press F5 never stops. Is there a way to see what is going on via logs?

jmatos avatar Apr 21 '20 15:04 jmatos

do you have installed a plugin ~LiveSearch~ LiveShare ? like in #147 ?

SqrTT avatar Apr 21 '20 17:04 SqrTT

is issue reproducible if all other plugins are disabled?

SqrTT avatar Apr 21 '20 17:04 SqrTT

I disabled all plugins and I'm still not able to debug :(

jmatos avatar Apr 21 '20 23:04 jmatos

I got it working again - I disabled the Prophet extension and then enabled it but this time I chose the "Enable (Workspace)" option instead of "Enable" - not sure why this made a difference but I'm happy now! Screen Shot 2020-04-21 at 11 02 32 PM

jmatos avatar Apr 22 '20 04:04 jmatos

I spoke too soon - its not working again :(

jmatos avatar Apr 22 '20 04:04 jmatos

Any other ideas? The debugging feature in eclipse does work for me - that seems to indicate that it is an issue with the plugin or with vscode. Am I the only one using a MAC that is having issues with debugging?

jmatos avatar Apr 23 '20 22:04 jmatos

I guess its back to eclipse :(

jmatos avatar Apr 24 '20 03:04 jmatos

Uninstalled vscode and installed vscode insiders and now debugging is working again.

https://code.visualstudio.com/insiders/

jmatos avatar Apr 24 '20 04:04 jmatos

vscode and vscode insiders use the same version of the extension...

SqrTT avatar May 24 '20 13:05 SqrTT

For me, restarts of VSCode have always fixed the debugger not starting. I'm not sure this problem is related to the extension.

ValentinGurkov avatar Nov 19 '20 09:11 ValentinGurkov

The debugger is not stopping the code on breakpoints without any error. After restarting the VS multiple times debugger works but then the auto-upload is not working anymore. I need to use the command Enable Upload for any change.

OS: macOS Catalina VSCode version - 1.54.3 The extension version - 1.4.15

vlad-simion avatar Apr 02 '21 06:04 vlad-simion

Hi @vlad-simion How long this is happening? Does it happen with previous versions? Could you please try to previous version? Are you sure code is executed where breakpoints is set? Let's say if add loging to file does log records appears? Is cache enabled on sandbox?

PS. seems you issue is not related to current ticket. Would be nice to not mix all issue into one and report it as separate

SqrTT avatar Apr 02 '21 10:04 SqrTT

Hi @vlad-simion How long this is happening? Does it happen with previous versions? Could you please try to previous version? Are you sure code is executed where breakpoints is set? Let's say if add loging to file does log records appears? Is cache enabled on sandbox?

PS. seems you issue is not related to current ticket. Would be nice to not mix all issue into one and report it as separate

I found my issue. It looks like a git repository inside a cartridge broke the Prophet. Once I removed the repository files the Prophet worked again as expected.

vlad-simion avatar Apr 07 '21 05:04 vlad-simion

I had the same issue "debugger tries to initiate but goes away". The reason behind this was my outdated credentials in dw.json file. It wasn't any issue with the VS Code or Prophet Debugger. Just sharing if it could help anyone else as well.

basitafzal-omnicom avatar Apr 24 '21 13:04 basitafzal-omnicom