Displaying vertex indices in Blender 2.8 using debug mode
You need to enable Developer Extras in the Interface settings, then you can enable vertex indices in the Viewport Overlays panel from the 3D viewport. You don't need to set the bpy.app.debug flag. Also, make sure to be in the Edit Mode. Object Mode will not show any vertex-related options.