To trace IGMP activity, you can include the traceoptions statement.
For general information about tracing and global tracing options, see the JUNOS Routing Protocols Configuration Guide.