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

Debug Service (right click menu) #2551

Open
VincentKKwan opened this issue Mar 5, 2025 · 7 comments · May be fixed by #2552
Open

Debug Service (right click menu) #2551

VincentKKwan opened this issue Mar 5, 2025 · 7 comments · May be fixed by #2552
Assignees
Labels
debug Debug client issue (IBM) enhancement New feature or request

Comments

@VincentKKwan
Copy link

Additional context

I am on Code for IBM i v2.15.2.

Image

Is your feature request related to a problem? Please describe.
When trying to start an offline debug service by clicking on the start icon, the SBMJOB command with the user keyword is USER(*CURRENT) . The current user may not have *ALLOBJ authority to start the debug service inside of Code for IBM i. There used to be an option to change the USER, but not anymore.

Describe the solution you'd like
Re-instate the prompt allowing the USER to be changed from *CURRENT to another value. Alternatively add a new menu item "Start Debug Service with User..." to the right click menu of the Debug Service Offline. This will allow the entry of a user that has *ALLOBJ authority.

Describe alternatives you've considered
Yes; it is possible to start the debug service via a STRQSH command on the startDebugService.sh and specify another user but that is an extra step inside a green screen 5250 emulator. Would be nice to do it inside Code for IBM i.

@VincentKKwan VincentKKwan added the idea Feature suggestion label Mar 5, 2025
@worksofliam worksofliam added enhancement New feature or request debug Debug client issue (IBM) and removed idea Feature suggestion labels Mar 5, 2025
@sebjulliand
Copy link
Collaborator

As far as I can tell, the prompt still shows up when starting the Debug Service - this hasn't changed since it was introduced:

Image

The process also checks that the profile used as SBMJOB's USER parameter has *ALLOBJ authority.
And submitting a job using another profile will require you to have *ALLOBJ anyway since you need to be authorized to this other profile. But that is checked as well when starting the service.

@VincentKKwan
Copy link
Author

I am on the latest Code for IBM i v2.15.2. If my current profile has *USE authority; then I have access to the other profile that has *ALLOBJ to start the debug service. The Debug Service submit options prompt no longer appears for me. I have exited VS Studio Code and restarted a few times, and it still does not appear.

@sebjulliand
Copy link
Collaborator

The control could be changed to check if you have *USE on that *ALLOBJ profile (even though at this point, it's almost like if you had *ALLOBJ since you can submit commands with it 😅).

But for the moment, when you try to start the service, don't you see this notification at the bottom right?

Image

@VincentKKwan
Copy link
Author

Yes I do see a notification at the bottom right, it tells me I have no *ALLOBJ authority when trying to start the debug service. The prompt to allow me to change the USER(*CURRENT) is missing - it no longer appears.

@sebjulliand
Copy link
Collaborator

Sorry to say you probably haven't seen that prompt for almost a year since the *ALLOBJ check was adding in April 2024 😅

Image

The bottom line is it's not a recent change; but if in your case, you used to see it until last week, then maybe something changed on your profile recently.

Anyway, I get your point about being able to submit with a profile on which you have *USE authority. An enhancement will be in order soon.

@sebjulliand sebjulliand self-assigned this Mar 5, 2025
@sebjulliand sebjulliand linked a pull request Mar 5, 2025 that will close this issue
1 task
@sebjulliand
Copy link
Collaborator

There it is: #2552

@VincentKKwan
Copy link
Author

Excellent Thank you! Yes you are correct. In evaluating Code for IBM i I ask my sys admin for temporary *ALLOBJ authority. It gets taken away from me every few hours, hence me experiencing this problem.

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

Successfully merging a pull request may close this issue.

3 participants