Community
Participate
Working Groups
#include <stdio.h> #include <stdlib.h> typedef enum IpSocketFlag { closed = 0 , opening , open } IpSocketFlag; int main(void) { IpSocketFlag flag = closed; printf("!!!Hello World!!! %d", flag); /* prints !!!Hello World!!! */ flag = opening; printf("!!!Hello World!!! %d", flag); /* prints !!!Hello World!!! */ return EXIT_SUCCESS; } There seems to be no way to display 'flag' as hex using CDI. Format as Hex still shows the enum as naturally formatted.
(this is part of a batch change) The CDI debug implementation has been removed in CDT 9.0. Please see bug 484900 and the entry on the New and Noteworthy page https://wiki.eclipse.org/CDT/User/NewIn90#API_modifications