July 2018
Intermediate to advanced
506 pages
16h 2m
English
So far we've identified one word that causes the preceding error to be thrown, but looking at the code, the SHA-256 hash only has to match the first seven characters in order for the error to be thrown. Rather than watching for new snapshots, we can inject a new log statement directly into the running service using Debug Logpoints.
Before continuing, turn off the previous breakpoint by clicking the x within the breakpoint icon. To create a new logpoint, click the Logpoint tab in the Stackdriver Debugger web interface. With the Logpoint tab open, click on the same line we used for the breakpoint. Set the log level to Error and set the message to word = {word}. Curly braces here indicate that the related variable should be interpolated. ...