Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trying to debug with SEP #2156

Closed
Gregory1701 opened this issue Jul 9, 2024 · 9 comments
Closed

Trying to debug with SEP #2156

Gregory1701 opened this issue Jul 9, 2024 · 9 comments
Labels
debug Debug client issue (IBM)

Comments

@Gregory1701
Copy link

I have the debug service running, but anytime I try to set a service entry point, I get this error.
My Trace:

From client: initialize({"clientID":"vscode","clientName":"Visual Studio Code","adapterID":"IBMiDebug","pathFormat":"path","linesStartAt1":true,"columnsStartAt1":true,"supportsVariableType":true,"supportsVariablePaging":true,"supportsRunInTerminalRequest":true,"locale":"en","supportsProgressReporting":true,"supportsInvalidatedEvent":true,"supportsMemoryReferences":true,"supportsArgsCanBeInterpretedByShell":true,"supportsMemoryEvent":true,"supportsStartDebuggingRequest":true})
To client: {"seq":0,"type":"response","request_seq":1,"command":"initialize","success":true,"body":{"supportsEvaluateForHovers":true,"supportsSetVariable":true,"supportsValueFormattingOptions":true,"supportsModulesRequest":true,"supportTerminateDebuggee":true,"supportsFunctionBreakpoints":true,"supportsConfigurationDoneRequest":true}}
From client: launch({"type":"IBMiDebug","request":"launch","subType":"sep","action":"set","name":"Service Entry Point","user":"<user>","password":"<password>","host":"AS400295.PCRICHARD.COM","port":8005,"sepDaemonPort":8008,"secure":true,"ignoreCertificateErrors":false,"library":"TEST_PGM","program":"ADDSDV","programType":"*PGM","module":"*ALL","procedure":"*ALL","trace":true,"workbenchSettings":{"updateProductionFiles":false,"enableDebugTracing":false},"__sessionId":"be64c71c-632e-48c9-a652-1b9124118fcf"})
To client: {"type":"event","seq":2,"event":"initialized"}
To client: {"type":"event","seq":3,"event":"exited","body":{"exitcode":0,"message":"DBGM0008E Failed to set service entry point on TEST_PGM/ADDSDV *PGM."}}
To client: {"type":"response","seq":0,"request_seq":2,"success":false,"command":"launch","body":{"error":{"id":"90008","format":"DBGM0008E Failed to set service entry point on TEST_PGM/ADDSDV *PGM.","showUser":true}}}

Context Version
Code for IBM i version 2.11.4
Visual Studio Code version 1.91.0
Operating System linux_x64
Active extensions
Code for IBM i Walkthroughs (vscode-ibmi-walkthroughs): 0.5.0
Configuration Editing (configuration-editing): 1.0.0
Db2 for IBM i (vscode-db2i): 1.0.0
Emmet (emmet): 1.0.0
Git (git): 1.0.0
Git Base (git-base): 1.0.0
GitHub (github): 0.0.1
GitHub Copilot (copilot): 1.211.0
GitHub Copilot Chat (copilot-chat): 0.17.0
IBM i Debug (ibmidebug): 2.0.1
JSON Language Features (json-language-features): 1.0.0
Jira and Bitbucket (Atlassian Labs) (atlascode): 3.0.10
Local Tunnel Port Forwarding (tunnel-forwarding): 1.0.0
Merge Conflict (merge-conflict): 1.0.0
NPM support for VS Code (npm): 1.0.1
Node Debug Auto-attach (debug-auto-launch): 1.0.0
RPGLE (vscode-rpgle): 0.26.8
Server Ready Action (debug-server-ready): 1.0.0
Thunder Client (vscode-thunder-client): 2.24.12
TypeScript and JavaScript Language Features (typescript-language-features): 1.0.0
YAML (vscode-yaml): 1.15.0

Remote system
Setting Value
IBM i OS V7R4M0
Tech Refresh 10
CCSID Origin 37
Runtime CCSID 37
Default CCSID 37
SQL Enabled
Source dates Disabled

Enabled features

/QOpenSys/pkgs/bin /usr/bin /QSYS.lib/ILEDITOR.lib /QSYS.LIB /QIBM/ProdData/IBMiDebugService/bin
bash attr GETNEWLIBL.PGM QZDFMDB2.PGM startDebugService.sh
chsh iconv
find setccsid
git
grep
ls
md5sum
sort
stat
tar
Variants
{
  "american": "#@$",
  "local": "#@$"
}
@sebjulliand sebjulliand added the debug Debug client issue (IBM) label Jul 9, 2024
@mkwan01
Copy link

mkwan01 commented Jul 9, 2024

The DAP trace does not contain enough information about the error. Please also attach the debug service log and the debug service eclipse instance log.

Debug service log:
/QIBM/UserData/IBMIDEBUGSERVICE/DebugService_log.txt

Debug service Eclipse instance log:
/QIBM/UserData/IBMIDEBUGSERVICE/startDebugService_workspace/.metadata/.log

@Gregory1701
Copy link
Author

DebugService_log.txt

I do not have anything within my /QIBM/UserData/IBMIDEBUGSERVICE/startDebugService_workspace/ folder.

@mkwan01
Copy link

mkwan01 commented Jul 9, 2024

The subdirectory .metadata is hidden under the "ls" command. Same for the file .log. You need to use "ls -a" to show these files. You can copy it to a regular file and then open the regular file:

cp /QIBM/UserData/IBMIDEBUGSERVICE/startDebugService_workspace/.metadata/.log /home/myid/eclipse_log.txt

@Gregory1701
Copy link
Author

eclipse_log.txt

@mkwan01
Copy link

mkwan01 commented Jul 10, 2024

The Eclipse log contains the following exception:

Caused by: com.ibm.as400.access.ObjectDoesNotExistException: /QSYS.lib/QDEVTOOLS.lib/QRSEUTILS.srvpgm: Object does not exist.
	at com.ibm.as400.access.ServiceProgramCall.run(ServiceProgramCall.java:387)
	at com.ibm.as400.data.PcmlProgram.callProgram(PcmlProgram.java:690)
	at com.ibm.as400.data.PcmlDocument.callProgram(PcmlDocument.java:460)
	at com.ibm.as400.data.ProgramCallDocument.callProgram(ProgramCallDocument.java:451)

@mkwan01
Copy link

mkwan01 commented Jul 10, 2024

This means you do not have 5770wds option 60 installed. Please install 5770wds option 60 and try again.

@sebjulliand
Copy link
Collaborator

This means you do not have 5770wds option 60 installed. Please install 5770wds option 60 and try again.

@mkwan01 good finding. This should be added to the extension's description.

@worksofliam
Copy link
Contributor

Sorry, didn't mean to close.

@sebjulliand @Gregory1701 What is the status here? We need a lil' doc updating?

@sebjulliand
Copy link
Collaborator

sebjulliand commented Jul 17, 2024

Guess it can be closed. The licensed product was missing and that's it.
That's been added to our doc too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
debug Debug client issue (IBM)
Projects
None yet
Development

No branches or pull requests

4 participants