@@ -1000,16 +1000,22 @@ exports.setHeaded = (bsConfig, args) => {
10001000 logger . debug ( `headless mode set to ${ bsConfig . run_settings . headless } ` ) ;
10011001} ;
10021002
1003+ exports . isConflictingBooleanValues = ( value1 , value2 ) => {
1004+ return ( value1 . toString ( ) == "true" && value2 . toString ( ) == "false" ) || ( value1 . toString ( ) == "false" && value2 . toString ( ) == "true" )
1005+ } ;
1006+
1007+ exports . isNonBooleanValue = ( value ) => {
1008+ return value . toString ( ) != "true" && value . toString ( ) != "false" ;
1009+ } ;
1010+
10031011exports . setInteractiveCapability = ( bsConfig ) => {
1004- let interactiveDegugging = true ;
1005- if ( bsConfig . interactive_debugging != undefined ) {
1006- interactiveDegugging = bsConfig . interactive_debugging ;
1007- }
1008- if ( bsConfig . interactiveDegugging != undefined ) {
1009- interactiveDegugging = bsConfig . interactiveDegugging ;
1010- }
1011- console . log ( `roshan1: the interactiveDegugging ${ interactiveDegugging } ::` ) ;
1012- bsConfig . interactiveDegugging = interactiveDegugging ;
1012+ let interactiveDebuggingTemp = "true" ;
1013+ let interactive_debugging = bsConfig . run_settings . interactive_debugging ;
1014+ let interactiveDebugging = bsConfig . run_settings . interactiveDebugging ;
1015+ if ( ! isNonBooleanValue ( interactive_debugging ) ) interactiveDebuggingTemp = interactive_debugging ;
1016+ else if ( ! isNonBooleanValue ( interactiveDebugging ) ) interactiveDebuggingTemp = interactiveDebugging ;
1017+ logger . debug ( `Setting interactiveDebugging flag to ${ interactiveDebuggingTemp } ` ) ;
1018+ bsConfig . run_settings . interactiveDebugging = interactiveDebuggingTemp ;
10131019}
10141020
10151021exports . setNoWrap = ( _bsConfig , args ) => {
0 commit comments