Independence Day Deal! Unlock 25% OFF Today – Limited-Time Offer - 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
30 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
Lajuana
14 days ago
User 1: 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
1 months 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
Isabelle
5 days ago
I agree, adding a 'debugger;' statement does seem a bit hacky.
upvoted 0 times
...
Katina
6 days ago
I think option B or D would be a better choice.
upvoted 0 times
...
...
Phuong
1 months 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
Stephaine
2 days ago
Yes, enabling the debug checkbox in Assemble is the correct option for step debugging on the Gatewayscript.
upvoted 0 times
...
Kerrie
8 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
2 months ago
I'm not sure, but I think enabling step debug in the Test tab could also work.
upvoted 0 times
...
Casie
2 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
Ilona
20 days ago
D) Enable debug checkbox in Assemble.
upvoted 0 times
...
King
28 days ago
C) Click the Trace in the Test tab.
upvoted 0 times
...
Sue
1 months ago
B) Enable step debug in the Test tab.
upvoted 0 times
...
Lavonna
2 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
3 months ago
I think the answer is A) Add a debugger; statement.
upvoted 0 times
...

Save Cancel