Captured the XML graph for a given deadlock involving some large / multi query sp's. However, not really sure how to interpret the line, stmtstart, stmtend of the frame element to determine which line of sproc TSQL encountered the deadlock. Line 214 doesn't seem to line up with any query in the SSMS editor but I am not sure how the engine normalizes sproc TSQL when line numbering. How do you resolve the captured line number with the line number as displayed in SSMS sproc definition?
<frame procname="MyDB.dbo.MyRecordsCleanup" line="214" stmtstart="19333" stmtend="19435" sqlhandle="0x030005007c47eb4c669a8d004eaf000001000000000000000000000000000000000000000000000000000000">
exec sp_executesql @NSQL, N'@ARG1 int', @ARG1 = @MyArg1
</frame>