diff --git a/app/client/src/actions/debuggerActions.ts b/app/client/src/actions/debuggerActions.ts index a045602ae2..59baecc197 100644 --- a/app/client/src/actions/debuggerActions.ts +++ b/app/client/src/actions/debuggerActions.ts @@ -2,6 +2,7 @@ import { ReduxActionTypes } from "@appsmith/constants/ReduxActionConstants"; import type { ENTITY_TYPE, Log, Message } from "entities/AppsmithConsole"; import type { DebuggerContext } from "reducers/uiReducers/debuggerReducer"; import type { EventName } from "@appsmith/utils/analyticsUtilTypes"; +import type { APP_MODE } from "entities/App"; export interface LogDebuggerErrorAnalyticsPayload { entityName: string; @@ -15,6 +16,7 @@ export interface LogDebuggerErrorAnalyticsPayload { errorType?: Message["type"]; errorSubType?: Message["subType"]; analytics?: Log["analytics"]; + appMode: APP_MODE; } export const debuggerLogInit = (payload: Log[]) => ({ diff --git a/app/client/src/sagas/DebuggerSagas.ts b/app/client/src/sagas/DebuggerSagas.ts index ee5ca6d803..4a31670f9b 100644 --- a/app/client/src/sagas/DebuggerSagas.ts +++ b/app/client/src/sagas/DebuggerSagas.ts @@ -399,6 +399,7 @@ function* logDebuggerErrorAnalyticsSaga( pageId: currentPageId, errorMessage: payload.errorMessage, errorType: payload.errorType, + appMode: payload.appMode, }); } else if (payload.entityType === ENTITY_TYPE.ACTION) { const action: Action | undefined = yield select( @@ -424,6 +425,7 @@ function* logDebuggerErrorAnalyticsSaga( errorMessage: payload.errorMessage, errorType: payload.errorType, errorSubType: payload.errorSubType, + appMode: payload.appMode, }); } else if (payload.entityType === ENTITY_TYPE.JSACTION) { const action: JSCollection = yield select( @@ -441,6 +443,7 @@ function* logDebuggerErrorAnalyticsSaga( propertyPath: payload.propertyPath, errorMessages: payload.errorMessages, pageId: currentPageId, + appMode: payload.appMode, }); } } catch (e) {