Open
Description
Example
void main() {
const int p = 1;
print(p); // breakpoint here
}
Javascript from initial compilation
For main function only, is here to illustrate that kernel representation has variable 'p' optimized away:
main.main = function main$() {
core.print(1);
};
Result of evaluating ‘p’ at the breakpoint above
CompilationError: Getter not found: 'p'
Suggestions
Is it possible to introduce debug mode in CFE where the information about optimized variables (such as 'p=1') is preserved so the incremental compiler can use it?