Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

IBM Exam C1000-138 Topic 1 Question 20 Discussion

Actual exam question for IBM's C1000-138 exam
Question #: 20
Topic #: 1
[All C1000-138 Questions]

A developer would like to run the step debugger on the Gatewayscript policy that is part of the Assembly.

What would allow step debugging on the Gatewayscript?

Show Suggested Answer Hide Answer
Suggested Answer: A

To enable step debugging on a GatewayScript policy in IBM API Connect v10.0.3, a developer must add a debugger; statement within the GatewayScript code. This statement serves as a breakpoint that will pause execution, allowing the developer to step through the code to identify and resolve issues.

Other options are incorrect:

Option B and D ('Enable step debug in the Test tab' and 'Enable debug checkbox in Assemble') do not enable the step debugger in GatewayScript.

Option C ('Click the Trace in the Test tab') allows tracing but not step debugging.


IBM API Connect v10.0.3 Documentation: Debugging GatewayScript Policies

Contribute your Thoughts:

Reita
9 days ago
Haha, 'Trace' in the Test tab? That's like trying to debug a program by reading tea leaves. I'll go with B or D, thanks.
upvoted 0 times
...
Elly
13 days ago
Hmm, I'm not sure. Adding a 'debugger;' statement seems a bit hacky. I'd prefer a more elegant solution like option B or D.
upvoted 0 times
...
Phuong
19 days ago
D sounds good to me. Enabling the debug checkbox in Assemble should do the trick. That's the approach I'd go with.
upvoted 0 times
...
Merri
1 months ago
I'm not sure, but I think enabling step debug in the Test tab could also work.
upvoted 0 times
...
Casie
1 months ago
I think the correct answer is B. Enabling step debug in the Test tab seems like the most straightforward way to run the step debugger on the Gatewayscript policy.
upvoted 0 times
King
7 days ago
C) Click the Trace in the Test tab.
upvoted 0 times
...
Sue
23 days ago
B) Enable step debug in the Test tab.
upvoted 0 times
...
Lavonna
1 months ago
A) Add a debugger; statement.
upvoted 0 times
...
...
Zana
2 months ago
I agree with Glory, adding a debugger statement would allow step debugging.
upvoted 0 times
...
Glory
2 months ago
I think the answer is A) Add a debugger; statement.
upvoted 0 times
...

Save Cancel