First of all I agree with all the above: STAY AWAY FROM MAIN!!
In this days I played a bit with a TRIAC dimmer controlled by a ESP8266 and I made exactly what you requested.
To be safe I connected the dimmer and the load after a small
isolation transformer made with 2 identical 220/12V transformers, connected "back to back".
I had to reduce the load because my transformers are not able to provide so much current, but to test the circuit a 10W light bulb was more than enough and everything is safer with less current
.
If you connect the scope across the load you will be safe and will get all the nice trace you are looking for.
Safe doesn't mean you can put your finger across the load or wherever you want on the circuit, since even though the current is small, the voltage is there, so pay attention and keep all the high voltage points properly isolated.
See attached what I got:
Pink = voltage across the load (actually a partition but that doesn't matter)
Blu = zero cross detection output to the microcontroller
Yellow = trigger from the microcontroller
Mauro