ExamGecko
Question list
Search
Search

Question 113 - CAD discussion

Report
Export

Which server-side API debug log method is available for scoped applications?

A.
gs.print()
Answers
A.
gs.print()
B.
gs.log()
Answers
B.
gs.log()
C.
gs.debuglog()
Answers
C.
gs.debuglog()
D.
gs.info()
Answers
D.
gs.info()
Suggested answer: D

Explanation:

The server-side API debug log method available for scoped applications is gs.info(). This method logs informational messages that describe the progress of the application. Older methods such as gs.print() and gs.log() are not available in scoped applications. The gs.debuglog() method does not exist. The gs.info(), gs.warn(), gs.error(), and gs.debug() methods work in both scoped applications and global, and are therefore more versatile going forward in future versions.

Reference:Debugging best practices

asked 23/09/2024
FUKUMOTO AYUMI
31 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first